Bug 508601 - Copying from GTK+ applications causes crash
authorKristian Rietveld <kris@gtk.org>
Mon, 25 Jul 2011 20:02:25 +0000 (22:02 +0200)
committerKristian Rietveld <kris@gtk.org>
Mon, 25 Jul 2011 20:05:52 +0000 (22:05 +0200)
commit8d69f3daf258c03e3b8d839cacc15a7b4d12e64d
treef9fd3c876d39fcf925906c40175c6cfc0829b09f
parentb0dd7e1cfdd3217cff9cb5e0a932e155821556b2
Bug 508601 - Copying from GTK+ applications causes crash

In GtkClipboardOwner pasteboard:provideDataForType do not call
_gtk_quartz_set_selection_data_for_pasteboard() is selection_data.length
is smaller than 0.  The function relies on having a positive length,
since it stores the length in a uint ...
gtk/gtkclipboard-quartz.c